package commands;

import server.Actions;

public class CreateCriminalRecord implements Command {
	private Actions action;
	private String fname;
	private String lname;
	private String address;
	private long lastDate;
	private String lastLocation;
	private String status;
	private String officerId; 
	
	public CreateCriminalRecord(Actions action, String fname, String lname, String address, long lastDate, String lastLocation, String status, String officerId) {
		super();
		
		this.action = action;
		this.fname = fname;
		this.lname = lname;
		this.address = address;
		this.lastDate = lastDate;
		this.lastLocation = lastLocation;
		this.status = status;
		this.officerId = officerId;
		
	}
	@Override
	public String execute() {
		return action.createCRecord(fname, lname, address, lastDate, lastLocation, status, officerId);
	}

}
